--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit bf8731c6cc39308dbfd6c3e34239c1f9c1a86b69
Parents : ad3ad40
Author : Ivan <e46112d44649266d71fe2193e00a4710>
Signature : T66BB85Valid, signed by author
Date : 2026-07-26T07:52:01-05:00
feat: add demo public status fields to API schemas and update test dependencies
Changes
3 files changed, 11 insertions(+), 1 deletions(-)
Diff
diff --git a/meshchatx.rsm b/meshchatx.rsm
index baced461..377c95cb 100644
Binary files a/meshchatx.rsm and b/meshchatx.rsm differ
diff --git a/tests/backend/api_json_contract_schemas.py b/tests/backend/api_json_contract_schemas.py
index 8ed3ffca..754aba29 100644
--- a/tests/backend/api_json_contract_schemas.py
+++ b/tests/backend/api_json_contract_schemas.py
@@ -196,7 +196,13 @@ _SERVER_BIND_STATUS_SCHEMA: dict = {
"seccomp_requested": {"type": "boolean"},
"seccomp_auto_enabled": {"type": "boolean"},
"seccomp_disabled_by_env": {"type": "boolean"},
- "seccomp_active": {"type": "boolean"},
+ "seccomp_active": {"type": "boolean"},
+}
+
+_DEMO_PUBLIC_STATUS_FIELDS: dict = {
+ "demo_mode": {"type": "boolean"},
+ "altcha_enabled": {"type": "boolean"},
+ "auth_page_hint": {"type": ["string", "null"]},
}
API_V1_STATUS_SCHEMA: dict = {
@@ -213,6 +219,7 @@ API_V1_STATUS_SCHEMA: dict = {
"ui_ready": {"type": "boolean"},
"error": {"type": "string"},
**_SERVER_BIND_STATUS_SCHEMA,
+ **_DEMO_PUBLIC_STATUS_FIELDS,
},
"additionalProperties": False,
}
@@ -339,6 +346,7 @@ AUTH_STATUS_SCHEMA: dict = {
"enum": ["http", "starting", "rns", "identity", "ready", "failed"],
},
"error": {"type": "string"},
+ **_DEMO_PUBLIC_STATUS_FIELDS,
},
"additionalProperties": False,
}
diff --git a/tests/backend/test_lxmf_local_self_oracle.py b/tests/backend/test_lxmf_local_self_oracle.py
index ee0356c0..fe78526d 100644
--- a/tests/backend/test_lxmf_local_self_oracle.py
+++ b/tests/backend/test_lxmf_local_self_oracle.py
@@ -13,6 +13,8 @@ from unittest.mock import AsyncMock, MagicMock, patch
import pytest
+pytest_plugins = ["tests.backend.test_lxmf_local_self_message"]
+
from meshchatx.meshchat import ReticulumMeshChat
from meshchatx.src.backend import reticulum_pathfinding
from tests.backend.test_lxmf_local_self_message import (
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────